-- GENERATED SPELL FOR [Reef Cow] --


function spell0_24797(pUnit, Event) --@Flipper Thwack,n/a--
pUnit:FullCastSpellOnTarget(50169,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24797', 632, 1)
end

function Sorts_24797(pUnit, Event)
local choix_sorts_24797 = math.random(0, 0)
if choix_sorts_24797 == 0 then
pUnit:RegisterEvent('spell0_24797', 1, 1)
end
end

function mob24797_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24797', math.random(1500, 3000), 1)
end

function mob24797_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24797_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24797_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24797, 1, 'mob24797_Action')
RegisterUnitEvent(24797, 2, 'mob24797_Leave')
RegisterUnitEvent(24797, 3, 'mob24797_Kill')
RegisterUnitEvent(24797, 4, 'mob24797_Die')
